package com.bh.ly.oa.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.bh.ly.oa.R;

public class MainActivity extends Activity {
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		initDatas();
	}

	private void initDatas() {
		new Thread() {
			public void run() {
				try {
					Thread.sleep(2000);
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
				Intent intent = new Intent(MainActivity.this,
						LoginActivity.class);
				startActivity(intent);
				finish();
			}
		}.start();
	}
}